package demo1;

/**
 * @Author: Lenovo
 * @Date: 2024/5/22 19:30
 * @description:
 */
public class Test {
    public static void drawMap(Shape shape){
        shape.draw();
    }

    public static void main(String[] args) {
        //IShape iShape=new IShape();
        Circle circle=new Circle();

        Shape[]shapes=new Shape[]{new Circle(),new Flower(),
                new Flower(),new Circle()};
        /*for(Shape shape:shapes){
            shape.draw();
        }*/
    }
    public static void main1(String[] args) {
        //Shape shape=new Shape();
        Circle circle=new Circle();
        Flower flower=new Flower();
        circle.draw();
        flower.draw();
    }
}
